const routes = [
    {
      path: '/',
      component: () => import ('@/views/Main'),
      redirect: '/home',
      children: [
        {
          path: '/home',
          name: 'Home',
          component: () => import('@/views/Home'),
          meta: { //元信息
            title: '控制台'
          }
        },
        {
          path: '/classify/add',
          name: 'ClassifyAdd',
          component: () => import('@/views/Classify/add.vue'),
          meta: { //元信息
            title: '添加分类'
          }
        },
        {
          path: '/classify/find',
          name: 'ClassifyFind',
          component: () => import('@/views/Classify/index.vue'),
          meta: { //元信息
            title: '所有分类'
          }
        },
        {
          path: '/goods/add',
          name: 'GoodsAdd',
          component: () => import('@/views/Goods/add.vue'),
          meta: { //元信息
            title: '发布商品'
          }
        },
        {
          path: '/goods/find/:state',
          name: 'GoodsFind',
          component: () => import('@/views/Goods/index.vue'),
          meta: { //元信息
            title: '商品列表'
          }
        }
      ]
    },
    // {
    //   path: '/login',
    //   component: () => import ('@/views/Login/index.vue')
    // },
    {
      path: "/demo",
      component: ()=>import('@/views/Demo.vue')
    }
  ]

  export default routes